// fetching the log
log = context.getLog()

context.startComposing();

resultset = context.queryForTable("select distinct ?x WHERE {?x a ?y } LIMIT 10",true,null,null)



resultset.each(){res->
	if(res.errors==null||res.errors.empty){
		context.sendMessageToUser("Store: " +res.storeName + " found  " + res.getResultCount() + "results")
	}else{
		context.sendMessageToUser("Store: " +res.storeName + " had this problem:  " + res.errors)
	}

	
		
	}



	